package org.jeecg.modules.flowable.service;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.flowable.dto.FlowRoleDTO;
import org.jeecg.modules.flowable.dto.FlowUserDTO;
import org.jeecg.modules.flowable.entity.FlowCategory;
import org.jeecg.modules.flowable.vo.FlowCategoryVO;

import java.util.List;

public interface FlowOperatorService   {

    /**
     * 获取当前登录用户
     *
     * @return 当前登录用户信息
     */
    public FlowUserDTO getLoginUser();
    /**
     * 所有用户
     * @return
     */
    List<FlowUserDTO> getAllUser();
    /**
     * 通过角色id获取用户
     * @return
     */
    List<FlowUserDTO> getUsersByRoleId(String roleId);
    /**
     * 根据用户username查询用户信息
     * @param username
     * @return
     */
    FlowUserDTO getUserByUsername(String username);

    /**
     * 获取所有角色
     * @return
     */
    public List<FlowRoleDTO> getAllRole();

    /**
     * 通过用户账号查询部门 name
     * @param username
     * @return 部门 name
     */
    List<String> getDepartNamesByUsername(String username);


    FlowUserDTO getUserById(String id);

    FlowRoleDTO getRoleById(String id);

    List<String> getRoleIdsByUsername(String username);
}
